﻿using System.Collections.Generic;
using Caliburn.Micro;

namespace Coproject
{
	public static class Extensions
	{
		public static bool IsNullOrWhiteSpace(this string value)
		{
			return string.IsNullOrWhiteSpace(value);
		}

		public static string FormatWith(this string formatString, params object[] args)
		{
			return string.Format(formatString, args);
		}

		public static IResult ToSequential(this IEnumerable<IResult> results)
		{
			return new SequentialResult(results.GetEnumerator());
		}
	}
}
